<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>if条件</title>
</head>

<body>
  
  <!-- 提示 -->
  {{include './common/msg.html'}}

  <!-- 标准 类似于html标签，有开始有结束 -->
  {{if age<10}}
  <h3>儿童</h3>
  {{else if age<20}}
  <h3>少年</h3>
  {{else}}
  <h3>老年</h3>
  {{/if}}
  <hr>
  {{if age<100}}
  少年
  {{/if}}
  <hr>
  <!-- 原始 -->
  <%if(age<10){%>
  <h3>儿童</h3>
  <%}else if(age<20){%>
  <h3>少年</h3>
  <%}else{%>
  <h3>老年</h3>
  <%}%>
</body>

</html>